package com.train.classeval.service.impl;

import com.train.classeval.entity.ProfessorRating;
import com.train.classeval.mapper.ProfessorRatingMapper;
import com.train.classeval.service.IProfessorRatingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xs
 * @since 2021-10-23
 */
@Service
public class ProfessorRatingServiceImpl extends ServiceImpl<ProfessorRatingMapper, ProfessorRating> implements IProfessorRatingService {


    @Autowired
    private ProfessorRatingMapper professorRatingMapper;

    @Override
    public Integer score(Integer eid) {
        Integer score = professorRatingMapper.score(eid);
        return score;
    }
}
